<%layout("../common/_layout.html", {nav: "下载资料管理"}) {%>
<div class="result-title">
  <a href="/admin/download/add">上传资源</a>
</div>
<div class="result-content">
  <table class="result-tab" width="100%">
    <tr>
      <th width="5%">No.</th>
      <th width="60%">资源名称</th>
      <th>创建时间</th>
      <th>下载地址</th>
      <th>操作</th>
    </tr>
    <%for(download in downloadList) {%>
    <tr>
      <td>${downloadLP.index}</td>
      <td>${download.name}</td>
      <td>${download.create_time, dateFormat="yyyy-MM-dd"}</td>
      <td><a href="/upload/download/${download.file}">点击下载</a></td>
      <td>
        <a class="link-del" href="/admin/download/delete?id=${download.id }" onclick="return confirm('删除后无法恢复,确定要删除吗')">删除</a>&nbsp;
      </td>
    </tr>
    <%}%>
  </table>
</div>
<%}%>